package cn.weixin.bussiness.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.weixin.bussiness.dao.UserDao;
import cn.weixin.bussiness.dao.base.BaseDao;
import cn.weixin.bussiness.model.User;
@Service
public class UserService extends BaseService<User, Integer>{
	@Autowired
	private UserDao defaultDao;

	@Override
	public BaseDao<User, Integer> getDefaultDao() {
		return defaultDao;
	}
	
	public void deleteByOpenid(String openid){
		defaultDao.deleteByOpenid(openid);
	}
}
